package com.lgcns.mybatis;

import java.util.ArrayList;
import java.util.HashMap;

import com.lgcns.board.Article;
import com.lgcns.board.AttachFile;
import com.lgcns.board.Board;
import com.lgcns.board.Comment;

public interface BoardMapper {

	public ArrayList<Article> getArticleList(HashMap<String, String> hashmap);
	
	public int getTotalRecord(HashMap<String, String> hashmap);
	
	public int insert(Article article);
	
	public AttachFile getAttachFile(int attachFileNo);
	
	public void insertAttachFile(AttachFile attachFile);
	
	public void update(Article article);
	
	public void delete(int articleNo);
	
	public void increaseHit(int articleNo);
	
	public Article getArticle(int articleNo);
	
	public Article getNextArticle(HashMap<String, String> hashmap);
	
	public Article getPrevArticle(HashMap<String, String> hashmap);
	
	public ArrayList<AttachFile> getAttachFileList(int articleNo);
	
	public void deleteFile(int attachFileNo);
	
	public String getBoardNm(String boardCd);
	
	public ArrayList<Board> getBoardList();
	
	public void insertComment(Comment comment);
	
	public void updateComment(Comment comment);
	
	public void deleteComment(int commentNo);
	
	public Comment getComment(int commentNo);
	
	public ArrayList<Comment> getCommentList(int articleNo);
}
